﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Contact.ascx.cs" Inherits="webapp4U.UI.Controls.Contact" %>
<%@ Register Src="~/Controls/MenuTop.ascx" TagName="MenuTop" TagPrefix="uc" %>
<%@ Import Namespace="webapp4U" %>
   

<table width="500px" align="center" cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td>
            <asp:ValidationSummary runat="server" ID="valChangePasswordSummary"  ShowMessageBox="true" ShowSummary="false" />			
            <asp:UpdatePanel ID="EmployeesUpdatePanel" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <table border="0" cellpadding="6" ID="Table2">
                   <tr>
                        <td align="center" colspan="2">
                            <asp:Panel runat="server" ID="PanelMsg" CssClass="lblMsg" Visible="false">
                                <asp:Label runat="server" ID="lblMsg" Font-Bold="false"></asp:Label>
                            </asp:Panel>
                        </td>
                   </tr> 
                   <tr>
                        <td class="text" width="80" align="right"><%=ResourceManager.GetString("FullName")%>: </td>
                        <td align="left">
                            <asp:TextBox runat="server" ID="txtFullName" Width="250" cssclass="textfield" MaxLength="200"></asp:TextBox>
                        </td>                                        
                   </tr>
                   <tr>
                        <td class="text" align="right"><%=ResourceManager.GetString("Address") %>: </td>
                        <td align="left">
                            <asp:TextBox runat="server" ID="txtAddress" Width="250" cssclass="textfield" MaxLength="200"></asp:TextBox>
                        </td>                                        
                   </tr>
                   <tr>
                        <td class="text" align="right"><%=ResourceManager.GetString("Phone") %>: </asp:Label></td>
                        <td align="left">
                            <asp:TextBox runat="server" ID="txtTel" Width="250" cssclass="textfield" MaxLength="200"></asp:TextBox>
                        </td>                                        
                   </tr>
                   <tr>
                        <td class="text"  align="right"><%=ResourceManager.GetString("Email") %>: </td>
                        <td align="left">
                            <asp:TextBox runat="server" ID="txtEmail" Width="250" cssclass="textfield" MaxLength="200"></asp:TextBox>
                            <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ControlToValidate="txtEmail" ID="RequiredFieldValidator3" ErrorMessage="The email can not be empty!" Display="none"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator SetFocusOnError="true" Display="none" id="emailRegExValidator" runat="server" ControlToValidate="txtEmail" CssClass="error" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ErrorMessage="Địa chỉ email không hợp lệ!"></asp:RegularExpressionValidator>
                        </td>                                        
                   </tr>
                   <tr>
                        <td class="text" align="right"><%=ResourceManager.GetString("Title") %>:</td>
                        <td align="left">
                            <asp:TextBox runat="server" ID="txtTitle" Width="250" cssclass="textfield" MaxLength="200"></asp:TextBox>
                            <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ControlToValidate="txtTitle" ID="RequiredFieldValidator4" ErrorMessage="The Title can not be empty!" Display="none"></asp:RequiredFieldValidator>
                        </td>                                        
                   </tr>
                   <tr>
                        <td class="text"  valign="top" align="right"><%=ResourceManager.GetString("Content") %>: </td>
                        <td align="left">
                            <asp:TextBox runat="server" ID="txtContent" cssclass="textfield" TextMode="MultiLine" Rows="8" Width="300px" MaxLength="2000"></asp:TextBox>
                            <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ControlToValidate="txtContent" ID="RequiredFieldValidator5" ErrorMessage="The content can not be empty!" Display="none"></asp:RequiredFieldValidator>
                        </td>  
                   </tr>
                   <tr>
                        <td colspan="2" align="right">
                           <asp:Button Text=" Send " runat="server" ID="btSend" OnClick="btSend_Click" />
                        </td>
                   </tr>
                </table>
               </ContentTemplate>
              </asp:UpdatePanel>
        </td>
    </tr>
</table>